import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class Test06 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: RichText(
        textAlign: TextAlign.center,
        text: TextSpan(style: DefaultTextStyle.of(context).style, children: [
          WidgetSpan(
              child: Container(
            margin: EdgeInsets.only(right: 10),
            padding: EdgeInsets.symmetric(horizontal: 10,vertical: 10),
            decoration: BoxDecoration(
              shape: BoxShape.rectangle,
              borderRadius: BorderRadius.circular(20),
              color: Colors.blue,
            ),
            child: Text(
              "dataaaaaaaa",
              style: TextStyle(color: Colors.red),
            ),
          )),
          TextSpan(text: "ceshi123")
        ]),
      ),
    );
  }
}
